﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SDT.Lib.Common;
using SDT.Model;
using SDT.Admin.ViewModels;

namespace SDT.Admin.Controllers
{
	[HandleError]
	[Authorize()]
	public class HomeController : Controller
	{
        SDTDataContext eDataContext = new SDTDataContext();
        public ActionResult Index()
		{
            HomeViewModels h = new HomeViewModels();
            var isAdmin = UserManager.CheckRole(RoleSystem.Administrator);
            int inOrganizationID = UserProfile.GetOrganizationID();
            //var l = eDataContext.Schedules.ToList();
            //h.Schedules = l;
			return View(h);
		}

		public ActionResult About()
		{
			return View();
		}
	}
}
